package com.tcoiss.webservice.controller.webapi;

import com.tcoiss.common.core.web.controller.BaseController;
import com.tcoiss.common.core.web.domain.AjaxResult;
import com.tcoiss.common.log.annotation.Log;
import com.tcoiss.common.log.enums.BusinessType;
import com.tcoiss.webservice.service.IWxApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/wx")
public class WxApiController extends BaseController {

    @Autowired
    private IWxApiService iWxApiService;


    @Log(title = "发送微信消息" , businessType = BusinessType.OTHER)
    @PostMapping("/sendWxMessage")
    public AjaxResult sendWxMessage(@RequestBody Map<String,Object> paramMap){

        return AjaxResult.success(iWxApiService.sendWxMessage(paramMap));

    }


}
